
define(['page/profile/agent-withdraw', 'page/profile/account-edit', 'wxshare'], 
function(agentWithdraw, accountEdit, wxshare) {
  return {
    init: function(data) {
      this.initPage(data)
    },
    
    initPage: function(data) {
      
      // forbidden wx share
      wxshare.initShare(data.jsConfig, false)
      
      // bind account edit
      agentWithdraw.init(__CTX__, true)
      
      // bind account edit
      accountEdit.init(__CTX__, true)

    }
  }
})